/**
 * File: NodeActivityReset.java
 * Created by: mhaimel
 * Created on: Mar 25, 2010
 * CVS:  $Id: NodeActivityReset.java 1.0 Mar 25, 2010 11:36:31 AM mhaimel Exp $
 */
package uk.ac.ebi.curtain.model.graph.impl;

import uk.ac.ebi.curtain.model.graph.Node;
import uk.ac.ebi.curtain.model.graph.GraphAccess.TouchEach;

/**
 * @author mhaimel
 *
 */
public class NodeActivityReset<N,A> implements TouchEach<Node<N,A>> {
	private final boolean active;

	public NodeActivityReset(boolean active) {
		this.active = active;
	}

	@Override
	public void touch(Node<N,A> node) {
		node.getActive().set(this.active);
	}
}
